package bio;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;

public class BIOClient {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 6666);
        OutputStream outputStream = socket.getOutputStream();
        PrintWriter printWriter = new PrintWriter(outputStream);

        Scanner scanner = new Scanner(System.in);
        String content = scanner.nextLine();
        printWriter.write(content);
        printWriter.flush();
        printWriter.close();
        outputStream.close();
    }
}
